#ifndef _GLOBAL_PARAMENTER_H_
#define _GLOBAL_PARAMENTER_H_
#include <string>

#include "data/db_struct.h"
#include "util/config_loader.h"

class DatabaseHelper;
struct GlobalParam
{
    DatabaseHelper* _database_helper;
    LoginLogList _login_log_list;
    utility::ConfigLoader _config_loader;
    uint32_t _count_each_time;
    std::string _db_ip;
    std::string _db_name;
    std::string _db_account;
    std::string _db_password;
    bool _modify;
public:
    GlobalParam();
    ~GlobalParam();

    bool LoadFrom(const char* filename);

    bool Conn2DB();
};

extern GlobalParam g_param;

#endif // _GLOBAL_PARAMENTER_H_
